#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include "dequeue.h"

int main(){

char buff[100];
dequeue * dq;

printf("start\n");

dq=createDequeue();
if (empty(dq))
	printf("empty\n");
printf("push\n");
push(dq,"1");

push(dq,"2");

push(dq,"3");

push(dq,"4");

top(dq,buff,100);
printf("top: %s\n",buff);
if (empty(dq))
	printf("empty\n");
bottom(dq,buff,100);
printf("bottom: %s\n",buff);

popBottom(dq);
bottom(dq,buff,100);
printf("bottom: %s\n",buff);
pushBottom(dq,"0");
bottom(dq,buff,100);
printf("bottom: %s\n",buff);

pop(dq);
top(dq,buff,100);
printf("top: %s\n",buff);
bottom(dq,buff,100);
printf("bottom: %s\n",buff);

popBottom(dq);
popBottom(dq);
popBottom(dq);
if (empty(dq))
	printf("empty\n");

freeDequeue(dq);

printf("end\n");

return 1;
}
